# 作   者：要努力，努力，再努力
# 开发日期：2022/4/24 12:39

import os.path
print(os.path.abspath('demo8.py'))
print(os.path.exists('demo3.py'), os.path.exists('nnn.py'))
print(os.path.join('E:\\Python', 'demo3.py'))
print(os.path.split('D:\\Learning\\workspace\\Pycharm\\20220409\\chap15\\demo8.py'))
print(os.path.splitext('demo8.py'))
print(os.path.basename('D:\\Learning\\workspace\\Pycharm\\20220409\\chap15\\demo8.py'))
print(os.path.dirname('D:\\Learning\\workspace\\Pycharm\\20220409\\chap15\\demo8.py'))
print(os.path.isdir('D:\\Learning\\workspace\\Pycharm\\20220409\\chap15\\demo8.py'))
print(os.path.isdir('D:\\Learning\\workspace\\Pycharm\\20220409\\chap15'))

